package com.ruoyi.face.utils;

import java.util.Base64;

/**
 * @program: smart_elderly_care_user
 * @Description:
 * @author: syv fire
 * @create: 2025-03-24 12:18
 */
public class ImageBase64Utils {
    /**
     * 将字节数组转换为Base64编码
     */
    public static String imageToBase64(byte[] imageBytes) {
        return Base64.getEncoder().encodeToString(imageBytes);
    }
}